package org.huge.simple.poi.core;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * @author jihu
 * date 2022-03-23
 */
public class SimpleXLSXPoi extends SimplePoi {

    public SimpleXLSXPoi(){
        this(new XSSFWorkbook());
    }
    public SimpleXLSXPoi(XSSFWorkbook workbook){
        super(workbook);
    }

    @Override
    public <T> SimplePoi export(String sheetName, List<T> datas, Class<T> clazz) {
        SimplePoi simpleXLSPoi = new SimpleXLSXPoi();
        return super.export(sheetName,datas,clazz);
    }

    @Override
    public <T> SimplePoi export(String sheetName, String title, List<T> datas, Class<T> clazz) {
        SimplePoi simpleXLSPoi = new SimpleXLSXPoi();
        return super.export(sheetName,title,datas,clazz);
    }




}
